package com.mine.facade.model;

import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;

@Data
@RequiredArgsConstructor
public class Request implements Serializable {
    private static AtomicLong atomicLong = new AtomicLong();
    private static final long serialVersionUID = -1790643723114731384L;
    private final long id = atomicLong.incrementAndGet();
    @NonNull
    private int type;
    @NonNull
    private String content;
}
